/* 
 * File:   Util.cpp
 * Author: Arturo
 * 
 * Created on November 14, 2010, 11:40 AM
 */

#include "Util.h"

Util::Util() {
}

Util::~Util() {
}

string Util::NumberToString(double valor) {
    ostringstream oss;
    oss << valor;
    return oss.str();

}

string Util::Now() {
    time_t rtime;
    struct tm* info;
    char r[11];
    time(&rtime);
    info = localtime(&rtime);
    strftime(r, 11, "%d/%m/%Y", info);

    return r;
}

